package cn.gailvlun.gll.net.apartment.room;

import android.support.annotation.StringRes;

import com.blankj.utilcode.util.Utils;

import cn.gailvlun.gll.net.R;



public enum RoomTag {
    J(R.string.tag_j),
    B(R.string.tag_b),
    X(R.string.tag_x),
    T(R.string.tag_t),
    D(R.string.tag_d),
    A(R.string.tag_a),
    L(R.string.tag_l),
    Y(R.string.tag_y),
    LOVE(R.string.tag_love);

    private @StringRes int title;

    RoomTag(@StringRes int title) {
        this.title = title;
    }

    public int getTitle() {
        return title;
    }

    public static boolean isSkill(RoomTag roomTag) {
        switch (roomTag) {
            case J:
            case B:
            case X:
            case T: {
                return true;
            }
            default: {
                return false;
            }
        }
    }

    @Override
    public String toString() {
        return Utils.getApp().getString(title);
    }
}
